﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using Microsoft.Expression.Interactivity.Core;

namespace InteControlSys.ViewModel
{
    public class GoFeildNodeViewModel : NodeViewModel
    {
        public GoFeildNodeViewModel(string name, MainWindowViewModel root, int truck, int statusId)
        {
            this.Name = name;
            this.Parent = null;
            this.RootVM = root;
            this.IsExpanded = true;
            this.TruckCount = truck;
            this.StatusID = statusId;
            this.NodeType = "GoFeildNodeViewModel";
            this.OperatingTruckList = new ObservableCollection<NodeViewModel>();
        }       
        public override Uri GetMyIcon()
        {
            return null;
        }
        public override void ExecuteConfirmCommand(object parameter)
        {
            List<NodeViewModel> selItems = OperatingTruckList.Where(x => x.IsSelected).ToList();

        }
    }
}
